package com.chengqj.springcloud.configclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloud
 * @description: 测试
 * @author: chengqj
 * @create: 2018-11-06 20:57
 **/
@RestController
@RefreshScope
public class TestController {
    @Value("${myname}")
    private String value;

    @RequestMapping(value = "/hi")
    public String hi() {
        return value;
    }
}
